<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>hasFocus</title>
</head>
<body>
	<script>
		setTimeout(() => {
			console.log(document.hasFocus())
		}, 1000)
	</script>
</body>
</html>